package com.thoughtful.service.impl;

import com.thoughtful.HelloService;
import com.thoughtful.annotation.RpcService;
import com.thoughtful.model.Hello;
import lombok.extern.slf4j.Slf4j;

/**
 * @author yushun
 * @createTime 2022/10/19 - 17:18
 **/
@Slf4j
@RpcService(group = "test", version = "1.0.0")
public class HelloServiceImpl implements HelloService {

    @Override
    public String hello(Hello hello) {
        log.info("HelloServiceImpl 收到: {}", hello.getMessage());
        String result = "Hello description is " + hello.getDescription();
        log.info("HelloServiceImpl 返回: {}", result);
        return result;
    }
}
